import request from '@/utils/request'

export default class Permission {
  static getPermissionListService = () => request.get('/sys/permission')

  static addPermissionService = (data: any) =>
    request.post('/sys/permission', data)

  static updatePermissionService = (data: any) =>
    request.put(`/sys/permission/${data.id}`, data)

  static delPermissionService = (id: any) =>
    request.delete(`/sys/permission/${id}`)

  static getPermissionService = (id: any) =>
    request.get(`/sys/permission/${id}`)
}
